<?php

namespace maotool\lock;

use maotool\core\Container;

class FileLockUtil
{

    public static function create($key)
    {
        return Container::getClass(FileLock::class)->create($key);
    }

    public static function open($key)
    {
        return Container::getClass(FileLock::class)->open($key);
    }

    public static function close($key)
    {
        return Container::getClass(FileLock::class)->close($key);
    }

    public static function status($key)
    {
        return Container::getClass(FileLock::class)->status($key);
    }

    public static function wait($key)
    {
        return Container::getClass(FileLock::class)->wait($key);
    }

}